package cn.ly.gateway.core.mapping;

/**
 * 网关接口映射信息
 *
 * @author liuyu
 */
public class HttpStatement {

    /**
     * 应用名称
     */
    private String application;

    /**
     * 接口名称
     */
    private String interfaceName;

    /**
     * 方法名称
     */
    private String methodName;

    /**
     * 网关接口
     */
    private String uri;

    /**
     * HTTP请求类型
     */
    private HttpCommandType commandType;

    /**
     * 参数类型(RPC 限定单参数注册)；
     * new String[]{"java.lang.String"}、new String[]{"cn.ly.gateway.rpc.dto.XReq"}
     */
    private String parameterType;

    private boolean auth;

    public HttpStatement(String application, String interfaceName, String methodName, String parameterType, String uri, HttpCommandType httpCommandType, boolean auth) {
        this.application = application;
        this.interfaceName = interfaceName;
        this.methodName = methodName;
        this.parameterType = parameterType;
        this.uri = uri;
        this.commandType = httpCommandType;
        this.auth = auth;
    }

    public String getApplication() {
        return application;
    }

    public void setApplication(String application) {
        this.application = application;
    }

    public String getInterfaceName() {
        return interfaceName;
    }

    public void setInterfaceName(String interfaceName) {
        this.interfaceName = interfaceName;
    }

    public String getMethodName() {
        return methodName;
    }

    public void setMethodName(String methodName) {
        this.methodName = methodName;
    }

    public String getUri() {
        return uri;
    }

    public void setUri(String uri) {
        this.uri = uri;
    }

    public HttpCommandType getCommandType() {
        return commandType;
    }

    public void setCommandType(HttpCommandType commandType) {
        this.commandType = commandType;
    }

    public String getParameterType() {
        return parameterType;
    }

    public void setParameterType(String parameterType) {
        this.parameterType = parameterType;
    }

    public boolean isAuth() {
        return auth;
    }

    public void setAuth(boolean auth) {
        auth = auth;
    }
}
